package sk.stuba.fiit.pki.test;

import java.io.File;
import java.io.FileInputStream;

import java.util.Properties;

import sk.stuba.fiit.pki.service.PkiService;

import com.sun.org.apache.xml.internal.security.c14n.Canonicalizer;

public class InitializationUtil {
	private static Properties properties = new Properties();
	
	static{
		try {
			properties.load(new FileInputStream(new File("./CA.properties")));
		} catch (Exception e) {
			e.printStackTrace();
		} 
		try {
			properties.load(new FileInputStream(new File(PkiService.PATH_FILE_NAME+"CA.properties")));
		} catch (Exception e) {
			e.printStackTrace();
		} 
	}
	public static Properties getCertificateProperties(){
		return properties;
	}
}
